package com.lcn.demo.client;

import com.lcn.demo.entity.Test;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author lilinshen
 * @title 请填写标题
 * @description 请填写相关描述
 * @date 2018/11/28 17:44
 */
@FeignClient(value = "demo2", fallback = Demo2ClientHystric.class)
public interface Demo2Client {

    @RequestMapping("/demo/list")
    List<Test> list();

    @RequestMapping("/demo/save")
    int save();
}
